package com.emep.changzhi.analyse.repository.basics;

import com.emep.changzhi.analyse.entity.basics.SysAqiInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: Api 持久层
 * @date 2018/2/27 16:49
 */
public interface SysAqiInfoRepository extends BaseRepository<SysAqiInfo,Long>{

    SysAqiInfo findSysAqiInfoById(String id);

    @Modifying
    @Transactional
    Integer deleteSysAqiInfoById(String id);

    Page<SysAqiInfo> findAll(Specification< SysAqiInfo> spec, Pageable pageable);
    List<SysAqiInfo> findByIsDelete(String is_delete);
}
